<ul class="breadcrumb">
	<li>
		<i class="icon-home"></i>
		<a href="index.html">Home</a> 
		<i class="icon-angle-right"></i>
	</li>
	<li><a href="#">Tin tức</a></li>
</ul>

<div class="row-fluid sortable">		
	<div class="box span12">
		<div class="box-header" data-original-title>
			<h2><i class="halflings-icon user"></i><span class="break"></span>Tin tức</h2>
			<div class="box-icon">
				<a href="#" class="btn-setting"><i class="halflings-icon wrench"></i></a>
				<a href="#" class="btn-minimize"><i class="halflings-icon chevron-up"></i></a>
				<a href="#" class="btn-close"><i class="halflings-icon remove"></i></a>
			</div>
		</div>
		<div class="box-content">
			<table class="table table-striped table-bordered bootstrap-datatable datatable">
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>D.mục cấp 1</th>
                        <th>D.mục cấp 2</th>
                        <th>Tiêu đề</th>
                        <th>Hiển thị</th>
                        <th>Nổi bật</th>
                        <th>Ngày đăng</th>
                        <th>Chức năng</th>
                    </tr>
                </thead>   
                <tbody>
                <?php foreach($this->newsList as $news){
                ?>
                    <tr>
                    	<td><?=$news['newsId']?></td>
                    	<td class="center"><?=$news['newsCat_catName']?></td>
                    	<td class="center"><?=$news['newsItem_itemName']?></td>
                    	<td class="center"><?=$news['title']?></td>
                    	<td class="center">
                            <?php 
                                if($news['display']==1){
                                    echo "<a href='#' class='halflings-icon ok' title='Hiển thị'></a>";                                        
                                }else{
                                    echo "<a href='#' class='halflings-icon remove' title='Hiển thị'></a>";                                
                            }?>                                                        
                        </td>
                        <td class="center">
                            <?php 
                                if($news['highlight']==1){
                                    echo "<a href='#' class='halflings-icon ok' title='Hiển thị'></a>";                                        
                                }else{
                                    echo "<a href='#' class='halflings-icon remove' title='Hiển thị'></a>";                                
                            }?>
                        </td>
                        <td class="center"><?=$news['postDate']?></td>
                        <td class="center">
                            <a href="/admin/edit/id/<?=$news['newsId']?>" class="halflings-icon edit" title="Sửa chi tiết tin"></a>
                            &nbsp;&nbsp;
                            <a href="/admin/del/id/<?=$news['newsId']?>" class="halflings-icon trash" title="Xoá tin"></a>
                        </td>                     
                    </tr>                    
                <?php
                }?>                                        														
			  </tbody>
		  </table>            
		</div>
	</div><!--/span-->

</div><!--/row-->